gui_deathknight = {
	name = "Death Knight",
	handler = ccR_GUI,
	type = "group",
        args = {
		tblDK_Blood = {
			name = "Blood",
			type = "group",
			childGroups = "tree",
			order = 1,
			args = {
               tblDK_1_AutoAoEHeader = {
                    order = 0,
                    type = "header",
                    name = "Automatic AoE Settings",
                },
                tblDK_1_SingleTargetCount = {
                    order = 1,
                    type = "input",
                    name = "Single Target Count",
                    desc = "* Automatic AoE *\n\n Maximum number of targets within 12 yards to use Single Target Rotation.",
                    set = function(info, value) ccRS.DeathKnight_1_SingleTargetCount = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_1_SingleTargetCount) end,
                },
                tblDK_1_AoECount = {
                    order = 2,
                    type = "input",
                    name = "AoE Target Count",
                    desc = "* Automatic AoE *\n\n Minimum number of targets within 12 yards to use AoE Rotation.",
                    set = function(info, value) ccRS.DeathKnight_1_AoECount = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_1_AoECount) end,
                },       
                tblDK_1_Empty = {
                    order = 500,
                    type = "header",
                    name = "Talents",
                },
				tblDK_1_UseRoilingBlood = {
					order = 501,
					type = "toggle",
					name = "Roiling Blood",
					desc = "Use Blood Boil to to ensure all target's have diseases?",
					set = function(info, value) ccRS.DeathKnight_1_UseRoilingBlood = value end,
					get = function(info) return ccRS.DeathKnight_1_UseRoilingBlood end,
				},
                tblDK_1_RoilingBloodCount = {
                    order = 502,
                    type = "input",
                    name = "Enemy Count",
                    desc = "How many enemies within 10 yards to use Blood boil?",
                    set = function(info, value) ccRS.DeathKnight_1_RoilingBloodCount = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_1_RoilingBloodCount) end,
                }, 
				tblDK_1_UsePlagueLeech = {
					order = 510,
					type = "toggle",
					name = "Plague Leech",
					desc = "Use Plague Leech when a target's disease has 5 seconds or less?",
					set = function(info, value) ccRS.DeathKnight_1_UsePlagueLeech = value end,
					get = function(info) return ccRS.DeathKnight_1_UsePlagueLeech end,
				},
				tblDK_1_Empty512 = {
					order = 512,
					type = "description",
					name = "",
				},
				tblDK_1_UseUnholyBlight = {
					order = 520,
					type = "toggle",
					name = "Unholy Blight",
					desc = "Use Unholy Blight when surrounded by so many enemies?",
					set = function(info, value) ccRS.DeathKnight_1_UseUnholyBlight = value end,
					get = function(info) return ccRS.DeathKnight_1_UseUnholyBlight end,
				},
                tblDK_1_UnholyBlightCount = {
                    order = 521,
                    type = "input",
                    name = "Enemy Count",
                    desc = "How many enemies within 10 yards to use Unholy blight?",
                    set = function(info, value) ccRS.DeathKnight_1_UnholyBlightCount = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_1_UnholyBlightCount) end,
                },
				tblDK_1_UseLichBorneHealing = {
					order = 530,
					type = "toggle",
					name = "Lichborne Healing",
					desc = "Use Lichborne when low on health to use death coil for self healing.",
					set = function(info, value) ccRS.DeathKnight_1_UseLichBorneHealing = value end,
					get = function(info) return ccRS.DeathKnight_1_UseLichBorneHealing end,
				},
                tblDK_1_LichborneHealingHP = {
                    order = 531,
                    type = "input",
                    name = "Health Percent",
                    desc = "What percentage of health to use Lichborne?",
                    set = function(info, value) ccRS.DeathKnight_1_LichBorneHealingHP = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_1_LichBorneHealingHP) end,
                },
				tblDK_1_UseAntiMagicZone = {
					order = 540,
					type = "toggle",
					name = "Anti-Magic Zone",
					desc = "Use Anti-Magic Zone If your target is casting a spell at you.",
					set = function(info, value) ccRS.DeathKnight_1_UseAntiMagicZone = value end,
					get = function(info) return ccRS.DeathKnight_1_UseAntiMagicZone end,
				},
				tblDK_1_Empty541 = {
					order = 541,
					type = "description",
					name = "",
				},
				tblDK_1_UseDeathsAdvance = {
					order = 550,
					type = "toggle",
					name = "Death's Advance",
					desc = "Use Death's Advance whenever moving.",
					set = function(info, value) ccRS.DeathKnight_UseDeathsAdvance = value end,
					get = function(info) return ccRS.DeathKnight_UseDeathsAdvance end,
					hidden = function() if ccRS.DeathKnight_UseDeathsAdvance then ccrTimer.Register('ccR_DeathKnight_DeathsAdvance', ccR_DeathKnight_DeathsAdvance, 0.5) else ccrTimer.Unregister('ccR_DeathKnight_DeathsAdvance') end end,
				},
				tblDK_1_Empty551 = {
					order = 551,
					type = "description",
					name = "",
				},
				tblDK_1_UseDeathPact = {
					order = 560,
					type = "toggle",
					name = "Death Pact",
					desc = "Use Death Pact when low on health for self healing.\n\n** Requires Raise Dead Ghoul **",
					set = function(info, value) ccRS.DeathKnight_1_UseDeathPact = value end,
					get = function(info) return ccRS.DeathKnight_1_UseDeathPact end,
				},
                tblDK_1_DeathPactHP = {
                    order = 561,
                    type = "input",
                    name = "Health Percent",
                    desc = "What percentage of health to use Death Pact?",
                    set = function(info, value) ccRS.DeathKnight_1_DeathPactHP = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_1_DeathPactHP) end,
                },
				tblDK_1_UseDeathSiphon = {
					order = 570,
					type = "toggle",
					name = "Death Siphon",
					desc = "Use Death Siphon when low on health and have a Death rune available.",
					set = function(info, value) ccRS.DeathKnight_1_UseDeathSiphon = value end,
					get = function(info) return ccRS.DeathKnight_1_UseDeathSiphon end,
				},
                tblDK_1_DeathSiphonHP = {
                    order = 571,
                    type = "input",
                    name = "Health Percent",
                    desc = "What percentage of health to use Death Siphon?",
                    set = function(info, value) ccRS.DeathKnight_1_DeathPactHP = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_1_DeathPactHP) end,
                },
				tblDK_1_UseConversion = {
					order = 580,
					type = "toggle",
					name = "Conversion",
					desc = "Use Conversion when you reach a low percentage of health until a specific percentage of health.",
					set = function(info, value) ccRS.DeathKnight_1_UseConversion = value end,
					get = function(info) return ccRS.DeathKnight_1_UseConversion end,
				},
				tblDK_1_Empty581 = {
					order = 581,
					type = "description",
					name = "",
				},
                tblDK_1_ConversionHP = {
                    order = 590,
                    type = "input",
                    name = "Low Health",
                    desc = "What percentage of health to use Conversion?",
                    set = function(info, value) ccRS.DeathKnight_1_ConversionHP = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_1_ConversionHP) end,
                },
                tblDK_1_ConversionHPMax = {
                    order = 591,
                    type = "input",
                    name = "Max Health",
                    desc = "What percentage of health to use cancel Conversion?",
                    set = function(info, value) ccRS.DeathKnight_1_ConversionHPMax = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_1_ConversionHPMax) end,
                },
				tblDK_1_UseBloodTap = {
					order = 600,
					type = "toggle",
					name = "Blood Tap",
					desc = "Use Blood Tap once you reach so many stacks of Blood Charge.",
					set = function(info, value) ccRS.DeathKnight_1_UseBloodTap = value end,
					get = function(info) return ccRS.DeathKnight_1_UseBloodTap end,
				},
                tblDK_1_BloodTapCharges = {
                    order = 601,
                    type = "input",
                    name = "Blood Charges",
                    desc = "How many stacks of Blood Charge to use Blood Tap?",
                    set = function(info, value) ccRS.DeathKnight_1_BloodTapCharges = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_1_BloodTapCharges) end,
                },
				tblDK_1_UseGorefiendsGrasp = {
					order = 610,
					type = "toggle",
					name = "Gorefiend's Grasp",
					desc = "Use Gorefiend's Grasp when so many enemies are within 20 yards of you.",
					set = function(info, value) ccRS.DeathKnight_1_UseGoreFiendsGrasp = value end,
					get = function(info) return ccRS.DeathKnight_1_UseGoreFiendsGrasp end,
				},
                tblDK_1_GorefiendsGraspCount = {
                    order = 611,
                    type = "input",
                    name = "Enemy count",
                    desc = "How many enemies within 20 yards of the player to use Gorefiend's Grasp?",
                    set = function(info, value) ccRS.DeathKnight_1_GorefiendsGraspCount = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_1_GorefiendsGraspCount) end,
                },
				tblDK_1_UseRemorselessWinter = {
					order = 620,
					type = "toggle",
					name = "Remorseless Winter",
					desc = "Use Remorseless Winter when so many enemies are within 8 yards of you.",
					set = function(info, value) ccRS.DeathKnight_1_UseRemorselessWinter = value end,
					get = function(info) return ccRS.DeathKnight_1_UseRemorselessWinter end,
				},
                tblDK_1_RemorselessWinterCount = {
                    order = 621,
                    type = "input",
                    name = "Enemy count",
                    desc = "How many enemies within 8 yards of the player to use Remorseless Winter?",
                    set = function(info, value) ccRS.DeathKnight_1_RemorselessWinterCount = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_1_RemorselessWinterCount) end,
                },
			},
		},
		tblDK_Frost = {
			name = "Frost",
			type = "group",
			childGroups = "tree",
			order = 2,
			args = {
               tblDK_2_AutoAoEHeader = {
                    order = 0,
                    type = "header",
                    name = "Automatic AoE Settings",
                },
                tblDK_2_SingleTargetCount = {
                    order = 1,
                    type = "input",
                    name = "Single Target Count",
                    desc = "* Automatic AoE *\n\n Maximum number of targets within 12 yards to use Single Target Rotation.",
                    set = function(info, value) ccRS.DeathKnight_2_SingleTargetCount = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_2_SingleTargetCount) end,
                },
                tblDK_2_AoECount = {
                    order = 2,
                    type = "input",
                    name = "AoE Target Count",
                    desc = "* Automatic AoE *\n\n Minimum number of targets within 12 yards to use AoE Rotation.",
                    set = function(info, value) ccRS.DeathKnight_2_AoECount = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_2_AoECount) end,
                },       
                tblDK_2_Empty100 = {
                    order = 100,
                    type = "header",
                    name = "",
                },
				tblDK_UsePillarOfFrost = {
					order = 101,
					type = "toggle",
					name = "Pillar Of Frost",
					desc = "Use Pillar of Frost when in combat?",
					set = function(info, value) ccRS.DeathKnight_2_UsePillarOfFrost = value end,
					get = function(info) return ccRS.DeathKnight_2_UsePillarOfFrost end,
				},
                tblDK_2_Empty = {
                    order = 500,
                    type = "header",
                    name = "Talents",
                },
				tblDK_2_UseRoilingBlood = {
					order = 501,
					type = "toggle",
					name = "Roiling Blood",
					desc = "Use Blood Boil to to ensure all target's have diseases?",
					set = function(info, value) ccRS.DeathKnight_2_UseRoilingBlood = value end,
					get = function(info) return ccRS.DeathKnight_2_UseRoilingBlood end,
				},
                tblDK_2_RoilingBloodCount = {
                    order = 502,
                    type = "input",
                    name = "Enemy Count",
                    desc = "How many enemies within 10 yards to use Blood boil?",
                    set = function(info, value) ccRS.DeathKnight_2_RoilingBloodCount = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_2_RoilingBloodCount) end,
                }, 
				tblDK_2_UsePlagueLeech = {
					order = 510,
					type = "toggle",
					name = "Plague Leech",
					desc = "Use Plague Leech when a target's disease has 5 seconds or less?",
					set = function(info, value) ccRS.DeathKnight_2_UsePlagueLeech = value end,
					get = function(info) return ccRS.DeathKnight_2_UsePlagueLeech end,
				},
				tblDK_2_Empty512 = {
					order = 512,
					type = "description",
					name = "",
				},
				tblDK_2_UseUnholyBlight = {
					order = 520,
					type = "toggle",
					name = "Unholy Blight",
					desc = "Use Unholy Blight when surrounded by so many enemies?",
					set = function(info, value) ccRS.DeathKnight_2_UseUnholyBlight = value end,
					get = function(info) return ccRS.DeathKnight_2_UseUnholyBlight end,
				},
                tblDK_2_UnholyBlightCount = {
                    order = 521,
                    type = "input",
                    name = "Enemy Count",
                    desc = "How many enemies within 10 yards to use Unholy blight?",
                    set = function(info, value) ccRS.DeathKnight_2_UnholyBlightCount = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_2_UnholyBlightCount) end,
                },
				tblDK_2_UseLichBorneHealing = {
					order = 530,
					type = "toggle",
					name = "Lichborne Healing",
					desc = "Use Lichborne when low on health to use death coil for self healing.",
					set = function(info, value) ccRS.DeathKnight_2_UseLichBorneHealing = value end,
					get = function(info) return ccRS.DeathKnight_2_UseLichBorneHealing end,
				},
                tblDK_2_LichborneHealingHP = {
                    order = 531,
                    type = "input",
                    name = "Health Percent",
                    desc = "What percentage of health to use Lichborne?",
                    set = function(info, value) ccRS.DeathKnight_2_LichBorneHealingHP = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_2_LichBorneHealingHP) end,
                },
				tblDK_2_UseAntiMagicZone = {
					order = 540,
					type = "toggle",
					name = "Anti-Magic Zone",
					desc = "Use Anti-Magic Zone If your target is casting a spell at you.",
					set = function(info, value) ccRS.DeathKnight_2_UseAntiMagicZone = value end,
					get = function(info) return ccRS.DeathKnight_2_UseAntiMagicZone end,
				},
				tblDK_2_Empty541 = {
					order = 541,
					type = "description",
					name = "",
				},
				tblDK_2_UseDeathsAdvance = {
					order = 550,
					type = "toggle",
					name = "Death's Advance",
					desc = "Use Death's Advance whenever moving.",
					set = function(info, value) ccRS.DeathKnight_UseDeathsAdvance = value end,
					get = function(info) return ccRS.DeathKnight_UseDeathsAdvance end,
					hidden = function() if ccRS.DeathKnight_UseDeathsAdvance then ccrTimer.Register('ccR_DeathKnight_DeathsAdvance', ccR_DeathKnight_DeathsAdvance, 0.5) else ccrTimer.Unregister('ccR_DeathKnight_DeathsAdvance') end end,
				},
				tblDK_2_Empty551 = {
					order = 551,
					type = "description",
					name = "",
				},
				tblDK_2_UseDeathPact = {
					order = 560,
					type = "toggle",
					name = "Death Pact",
					desc = "Use Death Pact when low on health for self healing.\n\n** Requires Raise Dead Ghoul **",
					set = function(info, value) ccRS.DeathKnight_2_UseDeathPact = value end,
					get = function(info) return ccRS.DeathKnight_2_UseDeathPact end,
				},
                tblDK_2_DeathPactHP = {
                    order = 561,
                    type = "input",
                    name = "Health Percent",
                    desc = "What percentage of health to use Death Pact?",
                    set = function(info, value) ccRS.DeathKnight_2_DeathPactHP = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_2_DeathPactHP) end,
                },
				tblDK_2_UseDeathSiphon = {
					order = 570,
					type = "toggle",
					name = "Death Siphon",
					desc = "Use Death Siphon when low on health and have a Death rune available.",
					set = function(info, value) ccRS.DeathKnight_2_UseDeathSiphon = value end,
					get = function(info) return ccRS.DeathKnight_2_UseDeathSiphon end,
				},
                tblDK_2_DeathSiphonHP = {
                    order = 571,
                    type = "input",
                    name = "Health Percent",
                    desc = "What percentage of health to use Death Siphon?",
                    set = function(info, value) ccRS.DeathKnight_2_DeathPactHP = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_2_DeathPactHP) end,
                },
				tblDK_2_UseConversion = {
					order = 580,
					type = "toggle",
					name = "Conversion",
					desc = "Use Conversion when you reach a low percentage of health until a specific percentage of health.",
					set = function(info, value) ccRS.DeathKnight_2_UseConversion = value end,
					get = function(info) return ccRS.DeathKnight_2_UseConversion end,
				},
				tblDK_2_Empty581 = {
					order = 581,
					type = "description",
					name = "",
				},
                tblDK_2_ConversionHP = {
                    order = 590,
                    type = "input",
                    name = "Low Health",
                    desc = "What percentage of health to use Conversion?",
                    set = function(info, value) ccRS.DeathKnight_2_ConversionHP = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_2_ConversionHP) end,
                },
                tblDK_2_ConversionHPMax = {
                    order = 591,
                    type = "input",
                    name = "Max Health",
                    desc = "What percentage of health to use cancel Conversion?",
                    set = function(info, value) ccRS.DeathKnight_2_ConversionHPMax = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_2_ConversionHPMax) end,
                },
				tblDK_2_UseBloodTap = {
					order = 600,
					type = "toggle",
					name = "Blood Tap",
					desc = "Use Blood Tap once you reach so many stacks of Blood Charge.",
					set = function(info, value) ccRS.DeathKnight_2_UseBloodTap = value end,
					get = function(info) return ccRS.DeathKnight_2_UseBloodTap end,
				},
                tblDK_2_BloodTapCharges = {
                    order = 601,
                    type = "input",
                    name = "Blood Charges",
                    desc = "How many stacks of Blood Charge to use Blood Tap?",
                    set = function(info, value) ccRS.DeathKnight_2_BloodTapCharges = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_2_BloodTapCharges) end,
                },
				tblDK_2_UseGorefiendsGrasp = {
					order = 610,
					type = "toggle",
					name = "Gorefiend's Grasp",
					desc = "Use Gorefiend's Grasp when so many enemies are within 20 yards of you.",
					set = function(info, value) ccRS.DeathKnight_2_UseGoreFiendsGrasp = value end,
					get = function(info) return ccRS.DeathKnight_2_UseGoreFiendsGrasp end,
				},
                tblDK_2_GorefiendsGraspCount = {
                    order = 611,
                    type = "input",
                    name = "Enemy count",
                    desc = "How many enemies within 20 yards of the player to use Gorefiend's Grasp?",
                    set = function(info, value) ccRS.DeathKnight_2_GorefiendsGraspCount = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_2_GorefiendsGraspCount) end,
                },
				tblDK_2_UseRemorselessWinter = {
					order = 620,
					type = "toggle",
					name = "Remorseless Winter",
					desc = "Use Remorseless Winter when so many enemies are within 8 yards of you.",
					set = function(info, value) ccRS.DeathKnight_2_UseRemorselessWinter = value end,
					get = function(info) return ccRS.DeathKnight_2_UseRemorselessWinter end,
				},
                tblDK_2_RemorselessWinterCount = {
                    order = 621,
                    type = "input",
                    name = "Enemy count",
                    desc = "How many enemies within 8 yards of the player to use Remorseless Winter?",
                    set = function(info, value) ccRS.DeathKnight_2_RemorselessWinterCount = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_2_RemorselessWinterCount) end,
                },
			},
		},
		tblDK_Unholy = {
			name = "Unholy",
			type = "group",
			childGroups = "tree",
			order = 3,
			args = {
               tblDK_3_AutoAoEHeader = {
                    order = 0,
                    type = "header",
                    name = "Automatic AoE Settings",
                },
                tblDK_3_SingleTargetCount = {
                    order = 1,
                    type = "input",
                    name = "Single Target Count",
                    desc = "* Automatic AoE *\n\n Maximum number of targets within 12 yards to use Single Target Rotation.",
                    set = function(info, value) ccRS.DeathKnight_3_SingleTargetCount = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_3_SingleTargetCount) end,
                },
                tblDK_3_AoECount = {
                    order = 2,
                    type = "input",
                    name = "AoE Target Count",
                    desc = "* Automatic AoE *\n\n Minimum number of targets within 12 yards to use AoE Rotation.",
                    set = function(info, value) ccRS.DeathKnight_3_AoECount = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_3_AoECount) end,
                },
                tblDK_3_Empty100 = {
                    order = 100,
                    type = "header",
                    name = "",
                },
				tblDK_UseUnholyFrenzy = {
					order = 101,
					type = "toggle",
					name = "Unholy Frenzy",
					desc = "Use Unholy Frenzy when in combat?",
					set = function(info, value) ccRS.DeathKnight_3_UseUnholyFrenzy = value end,
					get = function(info) return ccRS.DeathKnight_3_UseUnholyFrenzy end,
				},
                tblDK_3_Empty109 = {
                    order = 109,
                    type = "description",
                    name = "",
                },
				tblDK_UseSummonGargoyle = {
					order = 110,
					type = "toggle",
					name = "Summon Gargoyle",
					desc = "Use Summon Gargoyle when in combat?",
					set = function(info, value) ccRS.DeathKnight_3_UseSummonGargoyle = value end,
					get = function(info) return ccRS.DeathKnight_3_UseSummonGargoyle end,
				},
				tblDK_UseSummonGargoyleOnBuffs = {
					order = 111,
					type = "toggle",
					name = "Gargoyle on Frenzy",
					desc = "Use Summon Gargoyle when you have Unholy Frenzy buff?",
					set = function(info, value) ccRS.DeathKnight_3_UseSummonGargoyleOnBuffs = value end,
					get = function(info) return ccRS.DeathKnight_3_UseSummonGargoyleOnBuffs end,
				},
                tblDK_3_Empty = {
                    order = 500,
                    type = "header",
                    name = "Talents",
                },
				tblDK_3_UseRoilingBlood = {
					order = 501,
					type = "toggle",
					name = "Roiling Blood",
					desc = "Use Blood Boil to to ensure all target's have diseases?",
					set = function(info, value) ccRS.DeathKnight_3_UseRoilingBlood = value end,
					get = function(info) return ccRS.DeathKnight_3_UseRoilingBlood end,
				},
                tblDK_3_RoilingBloodCount = {
                    order = 502,
                    type = "input",
                    name = "Enemy Count",
                    desc = "How many enemies within 10 yards to use Blood boil?",
                    set = function(info, value) ccRS.DeathKnight_3_RoilingBloodCount = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_3_RoilingBloodCount) end,
                }, 
				tblDK_3_UsePlagueLeech = {
					order = 510,
					type = "toggle",
					name = "Plague Leech",
					desc = "Use Plague Leech when a target's disease has 5 seconds or less?",
					set = function(info, value) ccRS.DeathKnight_3_UsePlagueLeech = value end,
					get = function(info) return ccRS.DeathKnight_3_UsePlagueLeech end,
				},
				tblDK_3_Empty512 = {
					order = 512,
					type = "description",
					name = "",
				},
				tblDK_3_UseUnholyBlight = {
					order = 520,
					type = "toggle",
					name = "Unholy Blight",
					desc = "Use Unholy Blight when surrounded by so many enemies?",
					set = function(info, value) ccRS.DeathKnight_3_UseUnholyBlight = value end,
					get = function(info) return ccRS.DeathKnight_3_UseUnholyBlight end,
				},
                tblDK_3_UnholyBlightCount = {
                    order = 521,
                    type = "input",
                    name = "Enemy Count",
                    desc = "How many enemies within 10 yards to use Unholy blight?",
                    set = function(info, value) ccRS.DeathKnight_3_UnholyBlightCount = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_3_UnholyBlightCount) end,
                },
				tblDK_3_UseLichBorneHealing = {
					order = 530,
					type = "toggle",
					name = "Lichborne Healing",
					desc = "Use Lichborne when low on health to use death coil for self healing.",
					set = function(info, value) ccRS.DeathKnight_3_UseLichBorneHealing = value end,
					get = function(info) return ccRS.DeathKnight_3_UseLichBorneHealing end,
				},
                tblDK_3_LichborneHealingHP = {
                    order = 531,
                    type = "input",
                    name = "Health Percent",
                    desc = "What percentage of health to use Lichborne?",
                    set = function(info, value) ccRS.DeathKnight_3_LichBorneHealingHP = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_3_LichBorneHealingHP) end,
                },
				tblDK_3_UseAntiMagicZone = {
					order = 540,
					type = "toggle",
					name = "Anti-Magic Zone",
					desc = "Use Anti-Magic Zone If your target is casting a spell at you.",
					set = function(info, value) ccRS.DeathKnight_3_UseAntiMagicZone = value end,
					get = function(info) return ccRS.DeathKnight_3_UseAntiMagicZone end,
				},
				tblDK_3_Empty541 = {
					order = 541,
					type = "description",
					name = "",
				},
				tblDK_3_UseDeathsAdvance = {
					order = 550,
					type = "toggle",
					name = "Death's Advance",
					desc = "Use Death's Advance whenever moving.",
					set = function(info, value) ccRS.DeathKnight_UseDeathsAdvance = value end,
					get = function(info) return ccRS.DeathKnight_UseDeathsAdvance end,
					hidden = function() if ccRS.DeathKnight_UseDeathsAdvance then ccrTimer.Register('ccR_DeathKnight_DeathsAdvance', ccR_DeathKnight_DeathsAdvance, 0.5) else ccrTimer.Unregister('ccR_DeathKnight_DeathsAdvance') end end,
				},
				tblDK_3_Empty551 = {
					order = 551,
					type = "description",
					name = "",
				},
				tblDK_3_UseDeathPact = {
					order = 560,
					type = "toggle",
					name = "Death Pact",
					desc = "Use Death Pact when low on health for self healing.\n\n** Requires Raise Dead Ghoul **",
					set = function(info, value) ccRS.DeathKnight_3_UseDeathPact = value end,
					get = function(info) return ccRS.DeathKnight_3_UseDeathPact end,
				},
                tblDK_3_DeathPactHP = {
                    order = 561,
                    type = "input",
                    name = "Health Percent",
                    desc = "What percentage of health to use Death Pact?",
                    set = function(info, value) ccRS.DeathKnight_3_DeathPactHP = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_3_DeathPactHP) end,
                },
				tblDK_3_UseDeathSiphon = {
					order = 570,
					type = "toggle",
					name = "Death Siphon",
					desc = "Use Death Siphon when low on health and have a Death rune available.",
					set = function(info, value) ccRS.DeathKnight_3_UseDeathSiphon = value end,
					get = function(info) return ccRS.DeathKnight_3_UseDeathSiphon end,
				},
                tblDK_3_DeathSiphonHP = {
                    order = 571,
                    type = "input",
                    name = "Health Percent",
                    desc = "What percentage of health to use Death Siphon?",
                    set = function(info, value) ccRS.DeathKnight_3_DeathPactHP = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_3_DeathPactHP) end,
                },
				tblDK_3_UseConversion = {
					order = 580,
					type = "toggle",
					name = "Conversion",
					desc = "Use Conversion when you reach a low percentage of health until a specific percentage of health.",
					set = function(info, value) ccRS.DeathKnight_3_UseConversion = value end,
					get = function(info) return ccRS.DeathKnight_3_UseConversion end,
				},
				tblDK_3_Empty581 = {
					order = 581,
					type = "description",
					name = "",
				},
                tblDK_3_ConversionHP = {
                    order = 590,
                    type = "input",
                    name = "Low Health",
                    desc = "What percentage of health to use Conversion?",
                    set = function(info, value) ccRS.DeathKnight_3_ConversionHP = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_3_ConversionHP) end,
                },
                tblDK_3_ConversionHPMax = {
                    order = 591,
                    type = "input",
                    name = "Max Health",
                    desc = "What percentage of health to use cancel Conversion?",
                    set = function(info, value) ccRS.DeathKnight_3_ConversionHPMax = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_3_ConversionHPMax) end,
                },
				tblDK_3_UseBloodTap = {
					order = 600,
					type = "toggle",
					name = "Blood Tap",
					desc = "Use Blood Tap once you reach so many stacks of Blood Charge.",
					set = function(info, value) ccRS.DeathKnight_3_UseBloodTap = value end,
					get = function(info) return ccRS.DeathKnight_3_UseBloodTap end,
				},
                tblDK_3_BloodTapCharges = {
                    order = 601,
                    type = "input",
                    name = "Blood Charges",
                    desc = "How many stacks of Blood Charge to use Blood Tap?",
                    set = function(info, value) ccRS.DeathKnight_3_BloodTapCharges = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_3_BloodTapCharges) end,
                },
				tblDK_3_UseGorefiendsGrasp = {
					order = 610,
					type = "toggle",
					name = "Gorefiend's Grasp",
					desc = "Use Gorefiend's Grasp when so many enemies are within 20 yards of you.",
					set = function(info, value) ccRS.DeathKnight_3_UseGoreFiendsGrasp = value end,
					get = function(info) return ccRS.DeathKnight_3_UseGoreFiendsGrasp end,
				},
                tblDK_3_GorefiendsGraspCount = {
                    order = 611,
                    type = "input",
                    name = "Enemy count",
                    desc = "How many enemies within 20 yards of the player to use Gorefiend's Grasp?",
                    set = function(info, value) ccRS.DeathKnight_3_GorefiendsGraspCount = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_3_GorefiendsGraspCount) end,
                },
				tblDK_3_UseRemorselessWinter = {
					order = 620,
					type = "toggle",
					name = "Remorseless Winter",
					desc = "Use Remorseless Winter when so many enemies are within 8 yards of you.",
					set = function(info, value) ccRS.DeathKnight_3_UseRemorselessWinter = value end,
					get = function(info) return ccRS.DeathKnight_3_UseRemorselessWinter end,
				},
                tblDK_3_RemorselessWinterCount = {
                    order = 621,
                    type = "input",
                    name = "Enemy count",
                    desc = "How many enemies within 8 yards of the player to use Remorseless Winter?",
                    set = function(info, value) ccRS.DeathKnight_3_RemorselessWinterCount = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_3_RemorselessWinterCount) end,
                },
			},
		},
		tblDK_Abilities = {
			name = "Abilities",
			type = "group",
			childGroups = "tree",
			order = 4,
			args = {
				tblDK_UseDeathStrike = {
					order = 1,
					type = "toggle",
					name = "Death Strike",
					desc = "Use Death Strike when you reach a percentage of health?",
					set = function(info, value) ccRS.DeathKnight_UseDeathStrike = value end,
					get = function(info) return ccRS.DeathKnight_UseDeathStrike end,
				},
                tblDK_DeathStrikeHP = {
                    order = 2,
                    type = "input",
                    name = "Death Strike HP",
                    desc = "What percentage of health to use Death Strike?",
                    set = function(info, value) ccRS.DeathKnight_DeathStrikeHP = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_DeathStrikeHP) end,
                },
				tblDK_UseDeathStrikeOnProc = {
					order = 10,
					type = "toggle",
					name = "Death Strike On Proc",
					desc = "Use Death Strike when you proc Dark Succor?",
					set = function(info, value) ccRS.DeathKnight_UseDeathStrikeOnProc = value end,
					get = function(info) return ccRS.DeathKnight_UseDeathStrikeOnProc end,
				},
                tblDK_DeathStrikeOnProcHP = {
                    order = 11,
                    type = "input",
                    name = "Death Strike HP",
                    desc = "What percentage of health to use Death Strike?",
                    set = function(info, value) ccRS.DeathKnight_DeathStrikeOnProcHP = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_DeathStrikeOnProcHP) end,
                },
				tblDK_UseRaiseDead = {
					order = 20,
					type = "toggle",
					name = "Raise Dead",
					desc = "Use Raise Dead when in combat?",
					set = function(info, value) ccRS.DeathKnight_UseRaiseDead = value end,
					get = function(info) return ccRS.DeathKnight_UseRaiseDead end,
				},
				tblDK_UseRaiseDeadOnBuffs = {
					order = 21,
					type = "toggle",
					name = "Raise Dead on Buffs",
					desc = "Use Raise Dead when buffed with Pillar of Frost/Heroism?",
					set = function(info, value) ccRS.DeathKnight_UseRaiseDeadOnBuffs = value end,
					get = function(info) return ccRS.DeathKnight_UseRaiseDeadOnBuffs end,
				},
				tblDK_UseMindFreeze = {
					order = 30,
					type = "toggle",
					name = "Mind Freeze",
					desc = "Use Mind Freeze if your target is casting or channeling a spell.",
					set = function(info, value) ccRS.DeathKnight_UseMindFreeze = value end,
					get = function(info) return ccRS.DeathKnight_UseMindFreeze end,
				},
				tblDK_UseStrangulate = {
					order = 31,
					type = "toggle",
					name = "Strangulate",
					desc = "Use Strangulate if your target is casting or channeling a spell.",
					set = function(info, value) ccRS.DeathKnight_UseStrangulate = value end,
					get = function(info) return ccRS.DeathKnight_UseStrangulate end,
				},
				tblDK_UseChainsOfIce = {
					order = 40,
					type = "toggle",
					name = "Chains of Ice",
					desc = "Use Chains of Ice if your target is moving.",
					set = function(info, value) ccRS.DeathKnight_UseChainsOfIce = value end,
					get = function(info) return ccRS.DeathKnight_UseChainsOfIce end,
				},
				tblDK_Empty41 = {
					order = 41,
					type = "description",
					name = "",
				},				
				tblDK_UseDarkSimulacrum = {
					order = 50,
					type = "toggle",
					name = "Dark Simulacrum",
					desc = "Use Dark Simulacrum if your target is casting a spell at you.",
					set = function(info, value) ccRS.DeathKnight_UseDarkSimualcrum = value end,
					get = function(info) return ccRS.DeathKnight_UseDarkSimualcrum end,
				},
				tblDK_Empty51 = {
					order = 51,
					type = "description",
					name = "",
				},
				tblDK_UseEmpowerRuneWeapon = {
					order = 60,
					type = "toggle",
					name = "Empower Rune Weapon",
					desc = "Use Empower Rune Weapon if all runes are on cooldown.",
					set = function(info, value) ccRS.DeathKnight_UseEmpowerRuneWeapon = value end,
					get = function(info) return ccRS.DeathKnight_UseEmpowerRuneWeapon end,
				},
				tblDK_Empty61 = {
					order = 61,
					type = "description",
					name = "",
				},
				tblDK_UseHornOfWinter = {
					order = 70,
					type = "toggle",
					name = "Horn of Winter",
					desc = "Use Horn of Winter?",
					set = function(info, value) ccRS.DeathKnight_UseHornOfWinter = value end,
					get = function(info) return ccRS.DeathKnight_UseHornOfWinter end,
				},
                tblDK_HornOfWinterRunic = {
                    order = 71,
                    type = "input",
                    name = "Runic Power",
                    desc = "What percentage of runic power to not use Horn of Winter\n\neg. Not over 90?",
                    set = function(info, value) ccRS.DeathKnight_HornOfWinterLimit = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_HornOfWinterLimit) end,
                },
				tblDK_UseIceboundFortitude = {
					order = 80,
					type = "toggle",
					name = "Icebound Fortidue",
					desc = "Use Icebound Fortidue once you hit a certain percentage of health?",
					set = function(info, value) ccRS.DeathKnight_UseIceboundFortitude = value end,
					get = function(info) return ccRS.DeathKnight_UseIceboundFortitude end,
				},
                tblDK_IceboundFortitudeHP = {
                    order = 81,
                    type = "input",
                    name = "Health Percent",
                    desc = "What percentation of health to use Icebound Fortitude?",
                    set = function(info, value) ccRS.DeathKnight_IceboundFortitudeHP = tonumber(value) end,
                    get = function(info) return tostring(ccRS.DeathKnight_IceboundFortitudeHP) end,
                },
			},
		},		
	},
}